4
4
.
.
4
4
.
.
1
1
C
C
i
i
r
r
c
c
l
l
e
e
I
I
n
n
f
f
o
o
[
[
R
R
]
]
This tutorials shows how to add View in the shape of the Circle.
You can't combine fill and stroke on the same Circle.
Fill
struct ContentView : View {
var body : some View {
Circle()
.fill(Color.green)
.frame(width: 30, height: 30)
}
}
Stroke
struct ContentView : View {
var body : some View {
Circle()
.stroke(Color.green, lineWidth: 2)
.frame(width: 30, height: 30)
}
}
Fill Stroke